<?php
// ** MySQL Settings ** //
define('DB_NAME','conference');
define('DB_USER','conference');
define('DB_PASSWORD','conference');
define('DB_HOST','localhost');

/*
--- set up some constants ---
--- if you need/want to override any of these, this is the place ---
*/

// TABLE_PREFIX is the prefix used for your tables.
define('TABLE_PREFIX', '');

// CONFPATH is used to define the absolute on-disk path to the root of our
// installation.  It should be the output from `pwd` when executed
// in the directory containing init.php.  You really shouldn't need to
// edit this.  Use your .htaccess instead.  See the documentation.
if ($_SERVER['CONFPATH']) {
	define('CONFPATH', $_SERVER['CONFPATH']);
} else {
	error_log('You must SetEnv CONFPATH for this stuff to work.');
	echo ('You must SetEnv CONFPATH for this stuff to work. See
	documentation for more details.');
    // ie, put the following in your httpd.conf or .htaccess file:
	// SetEnv CONFPATH /var/www/htdocs/
    // Note the trailing slash. It MUST be there.
}

// CONFURI is the absolute URL path to the root of our installation.  It should
// be the link you'd share with people when you want to send them to your site.
// Note the trailing slash. It needs to be there.
define ('CONFURI', 'http://localhost/conference/');

define( 'MAINFILE', 'conference' ); // The name of the main 'conference'
        // file. If you rename it to, for example, conference.php, you
        // need to change this to the new name.

// INC is a shortcut constant that defines the on-disk location of the
// directory containing our included files.
define('INC', CONFPATH . 'includes/');

// Start and end of a day, and the length of a scheduling slot
define('DAYSTART', '0800');
define('DAYEND', '1800');
define('SCHEDSLOT', '30'); // Minutes

/*
--- END OF CONSTANT DECLARATIONS ---
--- STOP EDITING HERE ---
*/

// Fix for IIS, which doesn't set REQUEST_URI
if (! isset($_SERVER['REQUEST_URI'])) {
	$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
	
	// Append the query string if it exists and isn't null
	if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
		$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
	}
}

if ( !extension_loaded('mysql') )
	die( 'Your PHP installation appears to be missing the MySQL extension which is required to communicate with MySQL.' );

require_once ( INC . 'db.php');
require_once ( INC . 'functions.php');

// vim: filetype=php
?>
